import {defineStore} from 'pinia';

export const useMainPageStore = defineStore('mainPage', {

    state: () => ({
        header: [], column: [], data: []
    }),

    getters: {},

    actions: {
        setData(data) {
            this.data = data;
        },
        setHeader(data) {
            this.header = data;
        },
        setColumn(data) {
            this.column = data;

        },
        // setVuex(data) {
        //     console.log("更新Store", key, data)
        //     this[key] = data;
        // },
    }

});

